<?php

class SysProgsTable extends Doctrine_Table
{

    public function getProgById($prog_id) {
        $q = $this->createQuery()
                ->where("is_valid = ? ", 1)
                ->addWhere("id = ? ", $prog_id);
        return $q->execute();
    }
}